<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width, initial-scale=1.0">
		<meta http-equiv="X-UA-Compatible" content="ie=edge">
		<title></title>
		<link rel="stylesheet" type="text/css" href="js/elementUI/index.css"/>
		<link rel="stylesheet" href="css/main.css">
		
	</head>
	<body>
		<div class="main" id="app">
			<div class="contbox">
				<div class="title">欢迎进入<br/>{{name}}</div>
				
				<a :href="url" class="btna" style="text-align: center;line-height: 70px;">登录<i class="el-icon-right" style="margin-left: 20px;"></i></a>
				
			</div>
			
		</div>
		<script src="js/jquery-3.3.1.min.js" type="text/javascript" charset="utf-8"></script>
		<script src="js/vue.min.js" type="text/javascript" charset="utf-8"></script>
		<script src="js/elementUI/index.js" type="text/javascript" charset="utf-8"></script>
		<script src="js/axios.min.js" type="text/javascript" charset="utf-8"></script>
		<script type="text/javascript">
			let vm = new Vue({
				el: '#app',
				data() {
					return{
						ip:"",
						url:"",
						name:""
					}
				},
				computed: {},
				created() {
					this.ip=window.location.origin;
				},
				mounted(){
					let _this=this;
					$('document').ready(function () {
						axios.get(_this.ip+"/license/getInfo").then(res=>{
							_this.name=res.data.title;
							_this.url=res.data.url;
						});
					});	
				}, 
				methods: {	
				  submitUpload() {
					this.$refs.upload.submit();
				  },
				  handleRemove(file, fileList) {
					console.log(file, fileList);
				  },
				  handlePreview(file) {
					console.log(file);
				  }
				}
			})
		</script>
	</body>
</html>
